/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;
import javax.persistence.Entity;

/**
 *
 * @author Marvin Hiemstra
 */
@Entity
@Table(name = "Exam")
public class Exam implements Serializable {

    @Id
    @Column(name = "exName")
    private String exName;
    @Column(name = "exDescription")
    private String exDescription;
    @Column(name = "exVolgnr")
    private int exVolgnr;
    @ManyToOne(fetch = FetchType.LAZY)
    private Course course;
    

    public Exam() {
    }

    public Exam(String exName, String exDescription, int exVolgnr) {
        this.exName = exName;
        this.exDescription = exDescription;
        this.exVolgnr = exVolgnr;
    }

    

    public String getExDescription() {
        return exDescription;
    }

    public void setExDescription(String exDescription) {
        this.exDescription = exDescription;
    }

    public String getExName() {
        return exName;
    }

    public void setExName(String exName) {
        this.exName = exName;
    }

    public int getExVolgnr() {
        return exVolgnr;
    }

    public void setExVolgnr(int exVolgnr) {
        this.exVolgnr = exVolgnr;
    }
}
